package com.adtec.yxdemo;

import com.adtec.yxdemo.timedtask.*;
import io.jboot.app.JbootApplication;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;



@RequestMapping("/")
public class JbootApp extends JbootController {
    private static LoginTask loginTask;
    private static FileLandTask fileLandTask;

    public static void main(String[] args) {
        /**
         * 7-9点模拟登录 单线程
         */
        Thread loginThread=new Thread(loginTask);
        loginThread.start();

        /**
         * 17点文件落地打包加密 单线程
         */
        Thread fileTask=new Thread(fileLandTask);
        fileTask.start();

        /**
         * 多线程爬取数据
         */
        Thread payInfo=new Thread(new DataGetPayInfo());
        payInfo.start();
        Thread payDetail=new Thread(new DataGetPayDetail());
        payDetail.start();
        Thread payTrack=new Thread(new DataGetPayTrack());
        payTrack.start();
        JbootApplication.run(args);
    }
}
